package com.houweishi.module.currency.domain;

import com.houweishi.module.copy.domain.BizCopy;
import com.houweishi.module.record.domain.BizApprovalRecord;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 通用申请事项管理对象 oa_currency
 * 
 * @author houweishi
 * @date 2023-02-21
 */
@Data
public class OaCurrency extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long currencyId;

    /** 用户id */
//    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 员工id */
//    @Excel(name = "员工id")
    private Long staffId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String staffName;

    /** 申请事项 */
    @Excel(name = "申请事项")
    private String applicationItems;

    /** 申请原因 */
    @Excel(name = "申请原因")
    private String reason;

    /** 上传附件 */
    @Excel(name = "上传附件")
    private String enclosure;

    /** 选择审批人（上级指定） */
    @Excel(name = "选择审批人")
    private String approver;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 所属租户 */
//    @Excel(name = "所属租户")
    private Long tenantId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 是否使用模板（1是 2否） */
    @Excel(name = "是否使用模板")
    private String typeStatus;

    /** 模板id */
//    @Excel(name = "模板id")
    private Long typeId;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String typeName;

    /** 审批人姓名(多个） */
    private String approverName;

    /** 申请表类型id */
//    @Excel(name = "申请表类型id")
    private Long subscribePatternId;

    /** 申请表类型名称 */
    @Excel(name = "申请表类型名称")
    private String subscribePatternName;

    /** 流水单号 */
    @Excel(name = "流水单号")
    private String serialNum;

    /** 抄送人id */
//    @Excel(name = "抄送人id")
    private String copyerId;

    /** 抄送人姓名 */
    @Excel(name = "抄送人姓名")
    private String copyerName;

    /** 抄送记录列表 */
    private List<BizCopy> bizCopyList;

    /** 审批记录列表 */
    private List<BizApprovalRecord> approvalRecordList;

    public void setCurrencyId(Long currencyId) 
    {
        this.currencyId = currencyId;
    }

    public Long getCurrencyId() 
    {
        return currencyId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setStaffName(String staffName) 
    {
        this.staffName = staffName;
    }

    public String getStaffName() 
    {
        return staffName;
    }
    public void setApplicationItems(String applicationItems) 
    {
        this.applicationItems = applicationItems;
    }

    public String getApplicationItems() 
    {
        return applicationItems;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setEnclosure(String enclosure) 
    {
        this.enclosure = enclosure;
    }

    public String getEnclosure() 
    {
        return enclosure;
    }
    public void setApprover(String approver) 
    {
        this.approver = approver;
    }

    public String getApprover() 
    {
        return approver;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("currencyId", currencyId)
                .append("userId", userId)
                .append("username", username)
                .append("staffId", staffId)
                .append("staffName", staffName)
                .append("applicationItems", applicationItems)
                .append("reason", reason)
                .append("enclosure", enclosure)
                .append("approver", approver)
                .append("status", status)
                .append("tenantId", tenantId)
                .append("delFlag", delFlag)
                .append("typeStatus", typeStatus)
                .append("typeId", typeId)
                .append("typeName", typeName)
                .append("approverName", approverName)
                .append("subscribePatternId", subscribePatternId)
                .append("subscribePatternName", subscribePatternName)
                .append("serialNum", serialNum)
                .append("copyerId", copyerId)
                .append("copyerName", copyerName)
                .append("bizCopyList", bizCopyList)
                .append("approvalRecordList", approvalRecordList)
                .toString();
    }
}
